package dup.login.demo.service.impl;

import dup.login.demo.domain.User;
import dup.login.demo.mapper.UserMapper;
import dup.login.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public ArrayList<User> getUserList() {
        return userMapper.getUserList();
    }

    @Override
    public User getByUsername(String username) {
        return userMapper.getByUsername(username);
    }

    @Override
    public void getUserMsg(){
        System.out.println("我是AOP测试服务层~");
    }
}
